using System;
using Microsoft.SPOT;
using Gadgeteer.Modules.GHIElectronics;

namespace MLRobotic.Asserv.Drivers
{
    public class Motors
    {
        private readonly MotorControllerL298 _controller;
        public Motors(MotorControllerL298 controller)
        {
            _controller = controller;
        }

        public void MoveLeft(int pwm)
        {
            _controller.MoveMotor(MotorControllerL298.Motor.Motor2, -pwm);
        }

        public void MoveRight(int pwm)
        {
            _controller.MoveMotor(MotorControllerL298.Motor.Motor1, pwm);
        }
    }
}
